package com.ruoyi.teamSys.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.teamSys.mapper.TbManagementTeamMapper;
import com.ruoyi.teamSys.domain.TbManagementTeam;
import com.ruoyi.teamSys.service.ITbManagementTeamService;

/**
 * 管理团队Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-11-08
 */
@Service
public class TbManagementTeamServiceImpl implements ITbManagementTeamService 
{
    @Autowired
    private TbManagementTeamMapper tbManagementTeamMapper;

    /**
     * 查询管理团队
     * 
     * @param id 管理团队主键
     * @return 管理团队
     */
    @Override
    public TbManagementTeam selectTbManagementTeamById(Long id)
    {
        return tbManagementTeamMapper.selectTbManagementTeamById(id);
    }

    /**
     * 查询管理团队列表
     * 
     * @param tbManagementTeam 管理团队
     * @return 管理团队
     */
    @Override
    public List<TbManagementTeam> selectTbManagementTeamList(TbManagementTeam tbManagementTeam)
    {
        return tbManagementTeamMapper.selectTbManagementTeamList(tbManagementTeam);
    }

    /**
     * 新增管理团队
     * 
     * @param tbManagementTeam 管理团队
     * @return 结果
     */
    @Override
    public int insertTbManagementTeam(TbManagementTeam tbManagementTeam)
    {
        return tbManagementTeamMapper.insertTbManagementTeam(tbManagementTeam);
    }

    /**
     * 修改管理团队
     * 
     * @param tbManagementTeam 管理团队
     * @return 结果
     */
    @Override
    public int updateTbManagementTeam(TbManagementTeam tbManagementTeam)
    {
        return tbManagementTeamMapper.updateTbManagementTeam(tbManagementTeam);
    }

    /**
     * 批量删除管理团队
     * 
     * @param ids 需要删除的管理团队主键
     * @return 结果
     */
    @Override
    public int deleteTbManagementTeamByIds(Long[] ids)
    {
        return tbManagementTeamMapper.deleteTbManagementTeamByIds(ids);
    }

    /**
     * 删除管理团队信息
     * 
     * @param id 管理团队主键
     * @return 结果
     */
    @Override
    public int deleteTbManagementTeamById(Long id)
    {
        return tbManagementTeamMapper.deleteTbManagementTeamById(id);
    }
}
